package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

/**
 * 检查任务-考评人员关联
 */
@Data
@DbTable(tableName = "t_task_user")
public class TaskUser extends BaseEntity {
    /**
     * 检查任务ID
     */
    @DbTableField(columnName = "c_task_id", dbType = DbTypeEnum.INTEGER)
    public Integer taskId;

    /**
     * 考评人员ID
     */
    @DbTableField(columnName = "c_evaluation_user_id", dbType = DbTypeEnum.INTEGER)
    public Integer evaluationUserId;

    /**
     * 任务类型（0内业检查，1现场检查）
     */
    @DbTableField(columnName = "c_task_type", dbType = DbTypeEnum.INTEGER)
    public Integer taskType;

    /**
     * 业务类型-内业检查
     */
    public static final Integer TYPE_TASK_DOCUMENT = 0;

    /**
     * 业务类型-现场检查
     */
    public static final Integer TYPE_TASK_ON_SITE = 1;
}
